import request from '@/utils/request'
// 加工过程卡
const uri = '/processCard'

export function page (query) {
  return request({
    url: `${uri}`,
    method: 'get',
    params: query
  })
}

export function add (data) {
  return request({
    url: `${uri}`,
    method: 'post',
    data: data
  })
}

export function update (data) {
  return request({
    url: `${uri}`,
    method: 'put',
    data: data
  })
}

export function del (data) {
  return request({
    url: `${uri}`,
    method: 'delete',
    params: data
  })
}

export function fakeDel (data) {
    return request({
      url: `${uri}/fakeDelete`,
      method: 'delete',
      params: data
    })
  }

export function list (query) {
  return request({
    url: `${uri}/list`,
    method: 'get',
    params: query
  })
}

export function getById (id) {
  return request({
    url: `${uri}/${id}`,
    method: 'get'
  })
}
